export default defineAppConfig({
  pages: [
    "pages/index/index",
    "pages/cookbook/cookbook",
    "pages/square/square",
    "pages/order/order",
    "pages/oneself/oneself",
    "pages/videos/videos",
  ],
  usingComponents: {},
  window: {
    backgroundTextStyle: "light",
    navigationBarBackgroundColor: "#fff",
    navigationBarTitleText: "WeChat",
    navigationBarTextStyle: "black"
  },
  subPackages: [
    // {
    //   root: "subPackages/pageA",
    //   pages: [],
    //   independent: true,
    // },
    {
      root: "subPackages/pageB",
      pages: ["message/message"],
      independent: true,
    },
    {
      root: "subPackages/pageC",
      pages: ["user/user"],
      independent: true,
    }
  ],
  tabBar: {
    custom: true,
    color: "#000000",
    selectedColor: "#DC143C",
    backgroundColor: "#ffffff",
    list: [
      {
        pagePath: "pages/index/index",
        selectedIconPath: "static/images/tabbar_home_on.png",
        iconPath: "static/images/tabbar_home.png",
        text: "首页"
      },
      {
        pagePath: "pages/cookbook/cookbook",
        selectedIconPath: "static/images/logo.png",
        iconPath: "static/images/logo.png",
        text: "点单"
      },
      {
        pagePath: "pages/square/square",
        selectedIconPath: "static/images/logo.png",
        iconPath: "static/images/logo.png",
        text: "广场"
      },
      {
        pagePath: "pages/order/order",
        selectedIconPath: "static/images/logo.png",
        iconPath: "static/images/logo.png",
        text: "订单"
      },
      {
        pagePath: "pages/oneself/oneself",
        selectedIconPath: "static/images/logo.png",
        iconPath: "static/images/logo.png",
        text: "我的"
      },
      {
        pagePath: "pages/videos/videos",
        selectedIconPath: "static/images/logo.png",
        iconPath: "static/images/logo.png",
        text: "视频"
      }
    ]
  }
})
